import React, { Component } from 'react'; 

export default class BChild extends Component {
	state = {
		xx: 'h111',
		yy: 'h222',
	}
	cFn = () => {
		console.log('cFn', this.state);
		this.props.fn1(this.state);
	}
	// 渲染函数
    render() {
    	return (
			<div>
				<div>BChild:ms1:{this.props.ms1}</div>
				<div onClick={this.cFn}>BChild:点击触发子组件事件</div>
			</div>
		);
    }
};
